<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 00:33:05
 * @LastEditTime: 2022-08-25 21:33:51
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Models;

use App\Traits\MaterialTrait;
use App\Traits\StorageTrait;

class OpenCardDetailsScheduling extends BaseModel
    {
    use MaterialTrait;
    public $timestamps = true;
    public $table = "sys_open_card_details_scheduling";
    protected $guarded = [];

    public function open_card_details()
        {
        return $this->belongsTo(OpenCardDetails::class);
        }
    public function process_route()
        {
        return $this->belongsTo(ProProcessRoute::class);
        }
    public function machine()
        {
        return $this->belongsTo(Loom::class);
        }
    public function glue()
        {
        return $this->belongsTo(Material::class);
        }
    public function point_stick()
        {
        return $this->belongsTo(PointStick::class);
        }
    }
